﻿@model LatestAnnouncementVM
<div id="tab1" class="tab-content active">
    <div class="renews">
        @if (Model.AnnouncementWithThumb != null)
        {
            <a href="@Url.Action("Detail","Announcement",new { id=Model.AnnouncementWithThumb.Id})"><img src="@Model.AnnouncementWithThumb.Thumbnail" alt="@Model.AnnouncementWithThumb.Title" /></a>
        }        
    </div>
    <ul class="ann-list">
        @foreach (var item in Model.Announcements)
        {
            <li>
                <a href="@Url.Action("Detail","Announcement",new { id=item.Id})">@item.Title</a>
                <span class="hidden-sm hidden-xs">@item.CreatedDate.ToShortDateString()</span>
            </li>
        }
       
        @*<li><a href="#">人人贷杨一夫出席和讯互联网春季峰会并演讲</a><span class="hidden-sm hidden-xs">2014-5-26</span></li>
        <li><a href="#">中国小额信贷机构联席会理事会首迎P2P 人人贷实至名归</a><span class="hidden-sm hidden-xs">2014-5-26</span></li>
        <li><a href="#">人人贷李欣贺入选2014年“中国商业创新50人”大奖 </a><span class="hidden-sm hidden-xs">2014-5-26</span></li>*@

    </ul>
    <footer class="more">
        <a href="@Url.Action("Index","Announcement")">查看更多公告</a>
    </footer>
</div>